<%@ page language="java" contentType="text/html;charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-gdc.tld" prefix="gdc"%>
<html>

<head>
<title></title>
<script type="text/javascript" src="./js/eaoajs.js"></script>
</head>

<script language="JavaScript">
	function Search(){
		document.forms[0].action="roleManageSearch.do?isReturn=NO";
		document.forms[0].submit();
	}
	function Create(){
		document.forms[0].action = 'roleEditPre.do';
		document.forms[0].submit();		
	}
	function Delete(roleno){
		if(confirm('确定删除吗?')){
			document.forms[0].action='roleDelete.do?roleno='+roleno;
			document.forms[0].submit();
		}
	}
</script>
<body>
<table width="98%" height="30" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
			<td >				
				<table width="100%" style="margin-top: 15px;" align="center" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td>
							<strong><font color="#040466">权限组管理 -&gt; 查询</font></strong>
						</td>
						<td align="right">
							<div style="margin-right:5px">
								<gdc:help permissionid="11430" />
							</div>
						</td>
					</tr>
					<tr height="15">
						<td colspan="2">
							<hr noshade="noshade" width="100%" size="1">
						</td>
					</tr>
				</table>
			</td>
     </tr>
	<tr>
		<td >
		<html:form action="/roleManageSearch">
		<table id="conditions_table" width="100%" border="1" align="center"
			cellpadding="2" cellspacing="0" bgcolor="#FFFFFF"
			bordercolor="#FFFFFF">
			
			<tr>
				<TD width="15%" height="20" align=right bordercolor="#ffffff"
					bgColor=#e9ebef>权限代码 :</TD>
				<TD width="35%" bordercolor="#ffffff" bgcolor="#ffffff">
					<html:text property="condition.rolecode" styleClass="inputline" size="30"></html:text>
				</TD>
				
				<TD width="15%" height="20" align=right bordercolor="#ffffff"
					bgColor=#e9ebef>权限名称 :</TD>
				<TD width="35%" bordercolor="#ffffff" bgcolor="#ffffff">
					<html:text property="condition.rolename" styleClass="inputline" size="30"></html:text>
				</TD>
			</tr>	
			
			<tr>
				<td colspan="6" align="left" height="35">
				    <input name="Submit" type="button" class="button" value=" 查询 " onClick="Search();"> &nbsp; 
				    <input name="Submit" type="button" class="button" value=" 新建 " onClick="Create();"> &nbsp; 
				</td>
			</tr>
		</table>
		</html:form>
		<table width="100%">

			<tr>
				<td colspan="8" align="center"
					background="./images/splitter_bg_2.gif"><img
					src="./images/splitter_d.gif" width="79" 
					id="hidden_img" style="cursor:hand" onClick="hidden_conditions();">
				</td>
			</tr>
		</table>
		<table style="width:100%;" cellpadding="2" cellspacing="0" border="1px" bordercolor="silver" class="datatable">
			<tr bgcolor="EEEEEE">
				<td width="2%">
				<div align="center">NO.</div>
				</td>
				<td align=center width="15%">
				<div align="center">权限代码</div>
				</td>
				<td>
				<div align="center">权限名称</div>
				</td>
				<td align="center">
				<div align="center">权限描述</div>
				</td>
				<td align="center">
				<div align="center">操作</div>
				</td>
			</tr>
			<logic:notEmpty name="results" >
			<logic:iterate id="result" name="results" indexId="index">
			<tr id="gdc_ajax_id_tr1_<bean:write name="index"/>"
				onMouseOut="this.style.backgroundColor='#FFFFFF'"
				onMouseOver="this.style.backgroundColor='#DDDDDD'">
				<td>
					<div align="center"><gdc:iteratorNO indexId="index" /></div>
				</td>
				<td align="left">
					<bean:write name="result" property="rolecode" />
				</td>
				<td align="left"><bean:write name="result" property="rolename" /></td>
				<td align="left"><bean:write name="result" property="roledesc" /></td>
				<td align="center">
					<a href="roleEditPre.do?roleno=<bean:write name="result" property="roleno" />">编辑</a>
					&nbsp;&nbsp;
					<a href="javascript:Delete('<bean:write name="result" property="roleno" />')" >删除</a>
					&nbsp;&nbsp;
					<a href="roleModifyPre.do?roleno=<bean:write name="result" property="roleno" />&rolename=<bean:write name="result" property="rolename" />">编辑权限</a>
					&nbsp;&nbsp;
					<a href="roleEmployeeAction.do?roleno=<bean:write name="result" property="roleno" />&rolename=<bean:write name="result" property="rolename" />">编辑成员</a>

				</td>
			</tr>

			</logic:iterate>
			</logic:notEmpty>
		</table>

		</td>
	</tr>

</table>
<br>
<br>
</body>
</html>